import 'package:love_newf/generated/json/base/json_convert_content.dart';
import 'package:love_newf/app/com/model/login_user_info_model.dart';

LoginUserInfoModel $LoginUserInfoModelFromJson(Map<String, dynamic> json) {
  final LoginUserInfoModel loginUserInfoModel = LoginUserInfoModel();
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    loginUserInfoModel.status = status;
  }
  final String? wxOpenId = jsonConvert.convert<String>(json['wxOpenId']);
  if (wxOpenId != null) {
    loginUserInfoModel.wxOpenId = wxOpenId;
  }
  final String? imSign = jsonConvert.convert<String>(json['imSign']);
  if (imSign != null) {
    loginUserInfoModel.imSign = imSign;
  }
  final String? jgToken = jsonConvert.convert<String>(json['jgToken']);
  if (jgToken != null) {
    loginUserInfoModel.jgToken = jgToken;
  }
  final String? saToken = jsonConvert.convert<String>(json['saToken']);
  if (saToken != null) {
    loginUserInfoModel.saToken = saToken;
  }
  return loginUserInfoModel;
}

Map<String, dynamic> $LoginUserInfoModelToJson(LoginUserInfoModel entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['status'] = entity.status;
  data['wxOpenId'] = entity.wxOpenId;
  data['imSign'] = entity.imSign;
  data['jgToken'] = entity.jgToken;
  data['saToken'] = entity.saToken;
  return data;
}

extension LoginUserInfoModelExtension on LoginUserInfoModel {
  LoginUserInfoModel copyWith({
    int? status,
    String? wxOpenId,
    String? imSign,
    String? jgToken,
    String? saToken,
  }) {
    return LoginUserInfoModel()
      ..status = status ?? this.status
      ..wxOpenId = wxOpenId ?? this.wxOpenId
      ..imSign = imSign ?? this.imSign
      ..jgToken = jgToken ?? this.jgToken
      ..saToken = saToken ?? this.saToken;
  }
}